'''
安装MySQL
'''

from tkinter import E
import pymysql

db = pymysql.connect(host='10.8.0.7',user='root',password='',port=3306,database='wick_20240624')
cursor = db.cursor()

sql = "insert into wick_user(user_name,password) values('wuqiang','888')"

try:
    cursor.execute(sql)
    db.commit()
except:
    print("报错了哦")
else:
    db.close()

print("操作成功")
